package cn.mickey.cloud.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Accessors(chain=true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("t_user")
public class User {
    @TableId(type = IdType.ASSIGN_ID)
    private Long uid;
    private String username;
    private String uPassword;

    //添加字段填充内容
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;  //创建时间

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;   //更新时间

    //是否删除 默认为0,表示没有删除
    private int isDel = 0;
}
